﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace LNUGame.Model
{
    /// <summary>
    /// Base class for moving sprites.
    /// Contains an enum which keeps track of which direction the sprite is turned and a Vector2 which stores the current velocity of the sprite.
    /// </summary>
    class MovingActor : Actor
    {
        public enum Direction
        {
            RIGHT = 0,
            LEFT = 1
        }

        protected Direction m_currentDirection = Direction.LEFT;

        protected Vector2 m_velocity = new Vector2(0.0f, 0.0f);

        /// <summary>
        /// Get or set the velocity of the sprite
        /// </summary>
        public Vector2 Velocity
        {
            get
            {
                return m_velocity;
            }
            set
            {
                m_velocity = value;
            }
        }

        /// <summary>
        /// Get or set the facing direction of the sprite
        /// </summary>
        public Direction CurrentDirection
        {
            get
            {
                return m_currentDirection;
            }
            set
            {
                m_currentDirection = value;
            }
        }
    }
}
